/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.croptype.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.croptype.entity.TpCropType;
import com.thinkgem.jeesite.modules.croptype.dao.TpCropTypeDao;

/**
 * 作物类型管理Service
 * @author 王虎
 * @version 2017-03-10
 */
@Service
@Transactional(readOnly = true)
public class TpCropTypeService extends CrudService<TpCropTypeDao, TpCropType> {

	public TpCropType get(String id) {
		return super.get(id);
	}
	
	public List<TpCropType> findList(TpCropType tpCropType) {
		return super.findList(tpCropType);
	}
	
	public Page<TpCropType> findPage(Page<TpCropType> page, TpCropType tpCropType) {
		return super.findPage(page, tpCropType);
	}
	
	@Transactional(readOnly = false)
	public void save(TpCropType tpCropType) {
		super.save(tpCropType);
	}
	
	@Transactional(readOnly = false)
	public void delete(TpCropType tpCropType) {
		super.delete(tpCropType);
	}
	
}